#include "hextools.h"

#include <iostream>

int main() {

	char hexstr[] = {0xfa, 0xfb, 0xfb , 0xfb , 0xfb , 0xfb , 0xfb , 0xfb , 0xfb , 0xfb , 0xfb , 0xfb , 0xfb , 0xfd };
	char out_hexstr[255];
	hextools_get_str_from_chars(hexstr,sizeof(hexstr), out_hexstr, 255);

	std::cout << out_hexstr << std::endl;


	unsigned char src[] = { '0','x', 'f','f' };
	unsigned char out_hex16;
	hextools_hex_to_char(src, &out_hex16);
	
	std::cout << (int)out_hex16 << std::endl;

	unsigned char tstr[] = "0xff 0xfc 0x01";
	unsigned char t_out_hexstr[255];
	hextools_get_chars_from_hexstr(tstr,15,' ', t_out_hexstr, 255);



	return 0;
}